<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/templates/common/taglib.jsp"%>
<html>  
<head>  
<script >
function pr(){  
    frames[0].focus();  
    frames[0].print();  
}  
</script>  
</head>  
<body>  
<input type="button" onclick="pr()" value="打印" />  
<h1>  
test<p/>  
test<p/>  
test<p/>  
</h1>  
<iframe name="frame" src="${basePath}/static/upload/clickshare.pdf"  ></iframe>  
</body>  
</html>  

<%-- <body>
<iframe  name="frame" id="printIframe"></iframe>
<script language="javascript" type="text/javascript" src="${basePath}/static/publics/assets/jquery/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#printIframe").attr("src","${basePath}/static/upload/clickshare.pdf");
          setTimeout(doPrint,1000);
 
});
//点击打印按钮，触发事件】
function doPrint(){
	alert($("#printIframe"));
    $("#printIframe")[0].contentWindow.print();
    
    
    //兼容pdf和图片打印方式
    //
}



</script>
</body> --%>